package cn.tedu.egweibo05.base.response;

import lombok.Getter;

@Getter
public enum StatusCode {
    NOT_LOGIN(1000,"未登录"),
    LOGIN_SUCCESS(1001,"登录成功"),
    PASSWORD_ERROR(1002,"密码错误"),
    USERNAME_ERROR(1003,"用户名错误"),
    USERNAME_ALREADY_EXISTS(1004,"用户名被占用"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败"),
    VALIDATE_FAILED(3001,"校验失败"),
    ;
    private Integer state;
    private String message;

    StatusCode(Integer state, String message) {
        this.state = state;
        this.message = message;
    }
}
